﻿<?xml version="1.0" encoding="utf-8" ?>

<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="Microsoft.VSShell.9.0.SP1">
         
  <!-- Defines list of files to be copied on build -->
  <PackageFiles CopyAllPackageFiles="true">
    <PackageFile Name="vs_shell_isolated.enu.exe" />
  </PackageFiles>

  <InstallChecks>
    <RegistryCheck Property="VisualStudio" Key="HKLM\SOFTWARE\Microsoft\VisualStudio\9.0" Value="ApplicationId"/>
  </InstallChecks>

  <Commands Reboot="Immediate">
    <Command PackageFile="vs_shell_isolated.enu.exe" Arguments="/q" EstimatedInstallSeconds="900">
      <!-- These checks determine whether the package is to be installed -->
      <InstallConditions>
        <!-- Bypass if already installed -->
        <BypassIf Property="VisualStudio" Compare="ValueEqualTo" Value="VisualStudio" />
        
        <!-- Block install if user does not have admin privileges -->
        <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>

        <!-- Block install on Win95 -->
        <FailIf Property="Version9x" Compare="VersionLessThan" Value="4.10" String="InvalidPlatformWin9x"/>

        <!-- Block install on NT 4 or less -->
        <FailIf Property="VersionNT" Compare="VersionLessThan" Value="5.00" String="InvalidPlatformWinNT"/>
      </InstallConditions>

      <ExitCodes>
        <ExitCode Value="0" Result="Success"/>
        <ExitCode Value="1641" Result="SuccessReboot"/>
        <ExitCode Value="3010" Result="SuccessReboot"/>
        <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
      </ExitCodes>
    </Command>
  </Commands>
</Product>
